<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/20 0020
 * Time: 上午 10:29
 */
namespace  app\admin\controller;
use app\common\controller\Curt;
class  Province extends Curt{

    public function getall()
    {
        $keyword=input('get.keyword');
        if($keyword){
            $where['p_name']=['like','%'.$keyword.'%'];
        }
             $where['status']=1;
        $list = $this->model ->order('id desc') ->where($where) ->paginate();
        $page = $list->render();
        $this->assign('list', $list);
        $this->assign('page', $page);
    }
}